package com.mongodb.document.geoJson;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * 图层包装对象
 */
@Data
@Document(collection = "layer")
@ApiModel(value = "Layer", description = "图层信息")
public class Layer implements Serializable {
    private static final long serialVersionUID = 5840421005564321733L;

    @ApiModelProperty(value = "图层id")
    @Id
    private String layerId;
    @ApiModelProperty(value = "图层名称")
    private String name;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "包装Geometry")
    private List<WrappedGeometry> geometries;
}
